package com.situ.lession1226.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

//返回一个电影页面

@Controller

public class MessageController {
//    private NewsService newsService;
//    private RatingService ratingService;
//
//    public messaController(NewsService newsService, RatingService ratingService) {
//        this.newsService = newsService;
//        this.ratingService=ratingService;
//
//    }
//
//    public OneNewsController(NewsService newsService) {
//        this.newsService = newsService;
//    }


    @GetMapping("/message/showmess")
    public String technology(){

        return "message/showmess";
    }
    @GetMapping("/message/addmess")
    public String addmess(){

        return "message/addmess";
    }
    @GetMapping("/message/add")
    public String add(){

        return "message/add";
    }
}
